<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>南开大学软件工程课程后台管理系统</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css" href="./css/style.css">
<s:if test="#session.admin==null">
	<script>
		self.top.location.href = './login.jsp';
	</script>
</s:if>

	</head>

	<body>
		<div class="all">
			<div class="main">
				<h3>
					添加课件
				</h3>
				<table>
					<tr>
						<td>
							<s:form action="upload" method="POST"
								enctype="multipart/form-data">
								<s:textfield name="name" label="名称" size="29"></s:textfield>
								<s:file name="upload" label="文件" />
								<s:submit method="saveRes" />
							</s:form>
						</td>
					</tr>
				</table>

			</div>
		</div>
	</body>
</html>
